﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace graphicsdemo
{
    internal class SumArea
    {
        static void Main()
        {
            double sum = 0;
            for (int i = 0; i < 10; i++)
            {
                Graphics g = Factory.GetRandomGraphics();
                g.Show();
                sum += Factory.GetRandomGraphics().GetArea();
                
            }
            Console.WriteLine("随机10个形状的面积和是" + sum);
        }
    }
}
